package org.aswing;

extern class JTable extends Container, implements Viewportable, implements org.aswing.event.TableModelListener, implements org.aswing.table.TableColumnModelListener, implements org.aswing.event.CellEditorListener, implements LayoutManager {
	function new(?p0 : org.aswing.table.TableModel) : Void;
	function __listSelectionChanged(p0 : org.aswing.event.SelectionEvent) : Void;
	function addColumn(p0 : org.aswing.table.TableColumn) : Void;
	function addColumnSelectionInterval(p0 : Int, p1 : Int, ?p2 : Bool) : Void;
	function addColumnSelectionListener(p0 : Dynamic, ?p1 : Int, ?p2 : Bool) : Void;
	function addLayoutComponent(p0 : Component, p1 : Dynamic) : Void;
	function addRowSelectionInterval(p0 : Int, p1 : Int, ?p2 : Bool) : Void;
	function addSelectionListener(p0 : Dynamic, ?p1 : Int, ?p2 : Bool) : Void;
	function addStateListener(p0 : Dynamic, ?p1 : Int, ?p2 : Bool) : Void;
	function changeSelection(p0 : Int, p1 : Int, p2 : Bool, p3 : Bool, ?p4 : Bool) : Void;
	function clearSelection(?p0 : Bool) : Void;
	function columnAdded(p0 : org.aswing.table.TableColumnModelEvent) : Void;
	function columnAtPoint(p0 : org.aswing.geom.IntPoint) : Int;
	function columnMarginChanged(p0 : org.aswing.table.TableColumnModel) : Void;
	function columnMoved(p0 : org.aswing.table.TableColumnModelEvent) : Void;
	function columnRemoved(p0 : org.aswing.table.TableColumnModelEvent) : Void;
	function columnSelectionChanged(p0 : org.aswing.table.TableColumnModel, p1 : Int, p2 : Int, p3 : Bool) : Void;
	function convertColumnIndexToModel(p0 : Int) : Int;
	function convertColumnIndexToView(p0 : Int) : Int;
	function createDefaultCellFactories() : Void;
	function createDefaultColumnModel() : org.aswing.table.TableColumnModel;
	function createDefaultColumnsFromModel() : Void;
	function createDefaultDataModel() : org.aswing.table.TableModel;
	function createDefaultEditors() : Void;
	function createDefaultSelectionModel() : ListSelectionModel;
	function createDefaultTableHeader() : org.aswing.table.JTableHeader;
	function editCellAt(p0 : Int, p1 : Int, ?p2 : Int) : Bool;
	function editingCanceled(p0 : CellEditor) : Void;
	function editingStopped(p0 : CellEditor) : Void;
	function ensureCellIsVisible(p0 : Int, p1 : Int) : Void;
	function getAutoCreateColumnsFromModel() : Bool;
	function getAutoResizeMode() : Int;
	function getCellEditor() : org.aswing.table.TableCellEditor;
	function getCellEditorOfRowColumn(p0 : Int, p1 : Int) : org.aswing.table.TableCellEditor;
	function getCellFactory(p0 : Int, p1 : Int) : org.aswing.table.TableCellFactory;
	function getCellPane() : Container;
	function getCellRect(p0 : Int, p1 : Int, p2 : Bool) : org.aswing.geom.IntRectangle;
	function getCellSelectionEnabled() : Bool;
	function getColumn(p0 : Dynamic) : org.aswing.table.TableColumn;
	function getColumnAt(p0 : Int) : org.aswing.table.TableColumn;
	function getColumnClass(p0 : Int) : String;
	function getColumnCount() : Int;
	function getColumnModel() : org.aswing.table.TableColumnModel;
	function getColumnName(p0 : Int) : String;
	function getColumnSelectionAllowed() : Bool;
	function getDefaultCellFactory(p0 : String) : org.aswing.table.TableCellFactory;
	function getDefaultEditor(p0 : String) : org.aswing.table.TableCellEditor;
	function getEditingColumn() : Int;
	function getEditingRow() : Int;
	function getExtentSize() : org.aswing.geom.IntDimension;
	function getGridColor() : ASColor;
	function getHeaderHeight() : Int;
	function getHorizontalBlockIncrement() : Int;
	function getHorizontalUnitIncrement() : Int;
	function getIntercellSpacing() : org.aswing.geom.IntDimension;
	function getLayoutAlignmentX(p0 : Container) : Float;
	function getLayoutAlignmentY(p0 : Container) : Float;
	function getLogicLocationFromPixelLocation(p0 : org.aswing.geom.IntPoint) : org.aswing.geom.IntPoint;
	function getModel() : org.aswing.table.TableModel;
	function getPixelLocationFromLogicLocation(p0 : org.aswing.geom.IntPoint) : org.aswing.geom.IntPoint;
	function getPreferredScrollableViewportSize() : org.aswing.geom.IntDimension;
	function getRowCount() : Int;
	function getRowHeight() : Int;
	function getRowMargin() : Int;
	function getRowSelectionAllowed() : Bool;
	function getSelectedColumn() : Int;
	function getSelectedColumnCount() : Int;
	function getSelectedColumns() : Array<Dynamic>;
	function getSelectedRow() : Int;
	function getSelectedRowCount() : Int;
	function getSelectedRows() : Array<Dynamic>;
	function getSelectionBackground() : ASColor;
	function getSelectionForeground() : ASColor;
	function getSelectionModel() : ListSelectionModel;
	function getShowHorizontalLines() : Bool;
	function getShowVerticalLines() : Bool;
	function getTableHeader() : org.aswing.table.JTableHeader;
	function getTableUI() : org.aswing.plaf.TableUI;
	function getValueAt(p0 : Int, p1 : Int) : Dynamic;
	function getVerticalBlockIncrement() : Int;
	function getVerticalUnitIncrement() : Int;
	function getViewPosition() : org.aswing.geom.IntPoint;
	function getViewSize() : org.aswing.geom.IntDimension;
	function getViewportPane() : Component;
	function invalidateLayout(p0 : Container) : Void;
	function isCellEditable(p0 : Int, p1 : Int) : Bool;
	function isCellSelected(p0 : Int, p1 : Int) : Bool;
	function isColumnSelected(p0 : Int) : Bool;
	function isEditing() : Bool;
	function isRowSelected(p0 : Int) : Bool;
	function layoutContainer(p0 : Container) : Void;
	function maximumLayoutSize(p0 : Container) : org.aswing.geom.IntDimension;
	function minimumLayoutSize(p0 : Container) : org.aswing.geom.IntDimension;
	function moveColumn(p0 : Int, p1 : Int) : Void;
	function preferredLayoutSize(p0 : Container) : org.aswing.geom.IntDimension;
	function removeColumn(p0 : org.aswing.table.TableColumn) : Void;
	function removeColumnSelectionInterval(p0 : Int, p1 : Int, ?p2 : Bool) : Void;
	function removeColumnSelectionListener(p0 : Dynamic) : Void;
	function removeEditor() : Void;
	function removeLayoutComponent(p0 : Component) : Void;
	function removeRowSelectionInterval(p0 : Int, p1 : Int, ?p2 : Bool) : Void;
	function removeSelectionListener(p0 : Dynamic) : Void;
	function removeStateListener(p0 : Dynamic) : Void;
	function resizeAndRepaint() : Void;
	function rowAtPoint(p0 : org.aswing.geom.IntPoint) : Int;
	function scrollRectToVisible(p0 : org.aswing.geom.IntRectangle, ?p1 : Bool) : Void;
	function selectAll(?p0 : Bool) : Void;
	function setAutoCreateColumnsFromModel(p0 : Bool) : Void;
	function setAutoResizeMode(p0 : Int) : Void;
	function setCellEditor(p0 : org.aswing.table.TableCellEditor) : Void;
	function setCellSelectionEnabled(p0 : Bool) : Void;
	function setColumnModel(p0 : org.aswing.table.TableColumnModel) : Void;
	function setColumnSelectionAllowed(p0 : Bool) : Void;
	function setColumnSelectionInterval(p0 : Int, p1 : Int, ?p2 : Bool) : Void;
	function setDefaultCellFactory(p0 : String, p1 : org.aswing.table.TableCellFactory) : Void;
	function setDefaultEditor(p0 : String, p1 : org.aswing.table.TableCellEditor) : Void;
	function setEditingColumn(p0 : Int) : Void;
	function setEditingRow(p0 : Int) : Void;
	function setGridColor(p0 : ASColor) : Void;
	function setHorizontalBlockIncrement(p0 : Int) : Void;
	function setHorizontalUnitIncrement(p0 : Int) : Void;
	function setIntercellSpacing(p0 : org.aswing.geom.IntDimension) : Void;
	function setModel(p0 : org.aswing.table.TableModel) : Void;
	function setPreferredScrollableViewportSize(p0 : org.aswing.geom.IntDimension) : Void;
	function setRowHeight(p0 : Int) : Void;
	function setRowMargin(p0 : Int) : Void;
	function setRowSelectionAllowed(p0 : Bool) : Void;
	function setRowSelectionInterval(p0 : Int, p1 : Int, ?p2 : Bool) : Void;
	function setSelectionBackground(p0 : ASColor) : Void;
	function setSelectionForeground(p0 : ASColor) : Void;
	function setSelectionMode(p0 : Int) : Void;
	function setSelectionModel(p0 : ListSelectionModel) : Void;
	function setShowGrid(p0 : Bool) : Void;
	function setShowHorizontalLines(p0 : Bool) : Void;
	function setShowVerticalLines(p0 : Bool) : Void;
	function setTableHeader(p0 : org.aswing.table.JTableHeader) : Void;
	function setValueAt(p0 : Dynamic, p1 : Int, p2 : Int) : Void;
	function setVerticalBlockIncrement(p0 : Int) : Void;
	function setVerticalUnitIncrement(p0 : Int) : Void;
	function setViewPosition(p0 : org.aswing.geom.IntPoint, ?p1 : Bool) : Void;
	function setViewportTestSize(p0 : org.aswing.geom.IntDimension) : Void;
	function tableChanged(p0 : org.aswing.event.TableModelEvent) : Void;
	private var cellPane : Container;
	private var headerPane : Container;
	private function changeSelectionModel(p0 : ListSelectionModel, p1 : Int, p2 : Bool, p3 : Bool, p4 : Bool, ?p5 : Bool) : Void;
	private function fireStateChanged(?p0 : Bool) : Void;
	private function updateSubComponentUI(p0 : Dynamic) : Void;
	static var AUTO_INCREMENT : Int;
	static var AUTO_RESIZE_ALL_COLUMNS : Int;
	static var AUTO_RESIZE_LAST_COLUMN : Int;
	static var AUTO_RESIZE_NEXT_COLUMN : Int;
	static var AUTO_RESIZE_OFF : Int;
	static var AUTO_RESIZE_SUBSEQUENT_COLUMNS : Int;
	static var MULTIPLE_SELECTION : Int;
	static var SINGLE_SELECTION : Int;
}
